import java.util.StringJoiner;

public class StringDemo7 {
    public static void main(String[] args) {
        int[]arr={1,3,46,4,56,7,8,8};
        String s=getString(arr);
        System.out.println(s);
    }

    public static String getString(int[] arr){
        StringJoiner sj=new StringJoiner(",","[","]");
        for (int i = 0; i <arr.length ; i++) {
            sj.add(arr[i]+"");
        }
        String sb=sj.toString();
        return sb;
    }


}
